using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Spinning.Spinning.Interface;

namespace Spinning.Spinning.Unitity
{
    class EntityComparer : IComparer<IEntity>
    {
        public int Compare(IEntity x, IEntity y)
        {
            return (int)(x.ZIndex - y.ZIndex);
        }
    }
}
